package com.example.zzbus.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

@Entity(indexes = {
        @Index(value = "id DESC", unique = true)
})
public class UserOrder {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    private String username;
    @NotNull
    private String startaddress;
    @NotNull
    private String endaddress;
    @NotNull
    private String money;
    @NotNull
    private String time;
@Generated(hash = 885050559)
public UserOrder(Long id, @NotNull String username,
        @NotNull String startaddress, @NotNull String endaddress,
        @NotNull String money, @NotNull String time) {
    this.id = id;
    this.username = username;
    this.startaddress = startaddress;
    this.endaddress = endaddress;
    this.money = money;
    this.time = time;
}
@Generated(hash = 1552988665)
public UserOrder() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getUsername() {
    return this.username;
}
public void setUsername(String username) {
    this.username = username;
}
public String getStartaddress() {
    return this.startaddress;
}
public void setStartaddress(String startaddress) {
    this.startaddress = startaddress;
}
public String getEndaddress() {
    return this.endaddress;
}
public void setEndaddress(String endaddress) {
    this.endaddress = endaddress;
}
public String getMoney() {
    return this.money;
}
public void setMoney(String money) {
    this.money = money;
}
public String getTime() {
    return this.time;
}
public void setTime(String time) {
    this.time = time;
}

}
